<template>
    <div>
        新增商品
        <!-- <Child :title="title" v-on:update:title="text=>title=text"></Child>
        <Child :title.sync="title"></Child>
        {{title}} -->
        <!-- <Child :visible.sync="dialogVisible"></Child> -->
        <!-- {{title}}
        <input type="text" v-model="title">
        <input type="text" :value="title" @input="e=>title=e.target.value"> -->
        <!-- <Child v-model="title"></Child>
        12
        <Child :title="title" @input="text=> title=text"></Child>
        {{title}} -->
        <!-- <Child v-model="title"></Child> -->
        <!-- <Child :value="title" @input="text=> title=text"></Child>
        {{title}} -->
        {{visible}}
        <Child v-model="visible"></Child>
        <Child :visible="visible" @fun="check=> visible=check"></Child>
    </div>
</template>

<script>
import Child from './components/child'
export default {
    components:{
        Child
    },
    data(){
        return {
            title:'标题',
            visible:true
        }
    }
}
</script>